﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="devicesdetails.aspx.cs" Inherits="Devices_devicesdetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Stylesheet" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SubNavigation" Runat="Server">
    <ul>
        <li class="first">
            <asp:HyperLink ID="lnkOverview" NavigateUrl="~/Server/Device/default.aspx" runat="server">Overview</asp:HyperLink>
        </li>
         <li class="middle">
            <asp:HyperLink ID="HyperLink1" NavigateUrl="#" runat="server">Remote Desktop</asp:HyperLink>
        </li>
        <li  class="middle">
            <asp:HyperLink ID="lnkUsers" NavigateUrl="#" runat="server">Performance</asp:HyperLink>
        </li>
        <li  class="middle">
            <asp:HyperLink ID="lnkNotifications" NavigateUrl="#" runat="server">AntiVirus Status</asp:HyperLink>
        </li>
        <li class="last">
            <asp:HyperLink ID="lnkAccountInformation" NavigateUrl="#" runat="server">Backup Status</asp:HyperLink>
        </li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageHeader" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" Runat="Server">
    <div style="width: 70%; float:left; padding-right: 20px;padding-top:10px; border-right:1px solid #C0C0C0;">               
        <asp:DataList ID="dlDevices" runat="server" Width="100%"
            BorderWidth="0px"  CellPadding="0">
                <ItemTemplate>
                    <div style="width:100%;border-bottom:1px solid #C0C0C0"><%# Eval("Name")%><br /><br /> You can include notes for your device by clicking "Edit Server" in the sidebar.<br /><br />
                    <b>Hardware Details</b>
                    </div>
                    <div style="width:100%;padding-top: 10px">      
                        <ul>
                            <li>                   
                                <asp:Image ID="Image1" runat="server" BorderWidth="0" ImageUrl='<%# Convert.ToString(Eval("DeviceType"))=="D"?"~/Resources/Images/Device.jpg":"~/Resources/Images/firewall.gif" %>'  Width="100" Height="100" />
                           </li>
                            <li>
                                <%# Eval("OS.Name")%>
                            </li>
                            <li>
                                <%# (Convert.ToString(Eval("Plan.CPUs"))!="")?"CPU: "+Eval("Plan.CPUs"):""%>
                            </li>
                            <li>                                    
                                <%# (Convert.ToString(Eval("Plan.Ram")) != "") ? "Memory: "+Eval("Plan.Ram") : ""%>
                            </li>
                        </ul>
                        <br />
                        <br />
                        <div style="width:100%;border-bottom:1px solid #C0C0C0"><b>IP Addresses</b></div>                       
                        <%#Eval("IP") %>
                </ItemTemplate>
            </asp:DataList>   
            <br />
            <div style="width:100%;border-bottom:1px solid #C0C0C0"><b>Firewall</b></div>
            <asp:DataList ID="dlFirewall" runat="server" Width="100%">
                <HeaderTemplate>
                    
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink2" NavigateUrl='<%#"~/Server/Firewall/default.aspx?FirewallId="+Eval("Id")%>' runat="server"><%#Eval("Name") %></asp:HyperLink>
                </ItemTemplate>
            </asp:DataList>

    </div>
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="SideBar" Runat="Server">
    <div align="left" style="width:25%; float:left;padding-left:20px">
        
        <div style="width:100%;border-bottom:1px solid #C0C0C0">Options</div>
        <asp:HyperLink ID="hplEditSever" runat="server" 
            NavigateUrl="~/Server/Device/EditServer.aspx?Deviceid=">Edit Server</asp:HyperLink><br /><br />
        
        <div style="width:100%;border-bottom:1px solid #C0C0C0">Reboot</div>
        <asp:HyperLink ID="hplReboot" runat="server" NavigateUrl="#">Reboot Server</asp:HyperLink><br /><br />
        
        <div style="width:100%;border-bottom:1px solid #C0C0C0">Backup</div>
        Your server is not currently being backed up. <br />
        <asp:HyperLink ID="hplConfigure" runat="server" NavigateUrl="#">Configure Your Server For Backups</asp:HyperLink><br /><br />
        
        <div style="width:100%;border-bottom:1px solid #C0C0C0">Other Devices</div>
        <asp:DataList ID="dlDeviceOther" runat="server"  Width="100%">
            <ItemTemplate>
                <asp:HyperLink ID="HyperLink1" NavigateUrl='<%# Convert.ToString(Eval("DeviceType"))=="D"?"devicesdetails.aspx?Deviceid="+Eval("Id"):"~/Server/Firewall/default.aspx?FirewallId="+Eval("Id") %>' runat="server"><%#Eval("Name") %></asp:HyperLink>
            </ItemTemplate>
        </asp:DataList>
    </div>
</asp:Content>

